<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Database extends CI_Controller {


	function index()
	{
		$this->load->database();

		$this->load->model('my_database');

		$datas = $this->my_database->get_data();

		var_dump($datas);
	}

	function delete_cache()
	{
		$this->load->database();
		$this->db->cache_delete('database', 'index');
	}

	function delete_all()
	{
		$this->load->database();
		$this->db->cache_delete_all();
	}

	
}

/* End of file database.php */
/* Location: ./application/controllers/database.php */